package com.shu.hash;

import java.util.Random;

public class HashCodeTest {

	
	
	public static void main(String[] args) {
		String[] openids = {"o-d_xwQ1arthMtQwxLkhi2SkEeQU",
				"o-d_xwQ4pyOZGGVvLRkWu7xwuvvc",  
				"o-d_xwQFNojZ3z7flQS30VgDJRyE",  
				"o-d_xwQH1HfhUC0ydAO7JGk5BV8Y",  
				"o-d_xwQHiC061Hj9gjO-jj_kzNgQ",
				"o-d_xwQIW90dQeZPXwKPyiAhS7XI",
				"o-d_xwQOjFeeOvgPpkOXGyymDkHE",
				"o-d_xwQSNKFnd3gamfTR6qpuNyMc",
				"o-d_xwQUOdBVyey0_rhpXl5vVoDc",};
		 Random random = new Random();
		 int length = openids.length;
		 for(int i=0;i<400000;i++) {
			 int offset = i%length;
			 Thread thread = new Thread(new HashThread(openids[offset]));
			 thread.setName("Thread"+i);
			 thread.start();
		 }
		
    	
	}
}
